import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {DraFreeLotteryComponent} from './dra-free-lottery.component';

const routes: Routes = [
    {path: '', component: DraFreeLotteryComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-dra-free-lottery/add-dra-free-lottery.module#AddDraFreeLotteryModule'},
            {path: 'list', loadChildren: './list-dra-free-lottery/list-dra-free-lottery.module#ListDraFreeLotteryModule'},
            {path: 'modify', loadChildren: './modify-dra-free-lottery/modify-dra-free-lottery.module#ModifyDraFreeLotteryModule'},
            {path: 'report', loadChildren: './report-dra-free-lottery/report-dra-free-lottery.module#ReportDraFreeLotteryModule'},
            {path: 'dra-free-lottery', loadChildren: './report-dra-free-lottery/report-dra-free-lottery.module#ReportDraFreeLotteryModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DraFreeLotteryRoutingModule {
}
